package com.unsanctioned.radioagregator.fragments;

import com.unsanctioned.radioagregator.MainActivity;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class PlaylistFragment extends Fragment {
	public static final String DOGTAG = PlaylistFragment.class.getSimpleName();
	
	public interface OnPlaylistSelectedListener {
		public void onPlaylistSelectedListener();
	}
	
	public PlaylistFragment() {
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		LayoutInflater i = inflater;
		if (i == null) i = LayoutInflater.from(MainActivity.getMainContext());
		return super.onCreateView(inflater, container, savedInstanceState);
	}
	
	@Override
	public void onAttach(Activity activity) {
		// TODO Auto-generated method stub
		super.onAttach(activity);
		try {
			
		} catch (ClassCastException e) {
			throw new ClassCastException(activity.toString() + " needs to implement interface: OnPlaylistSelectedListener");
		}
	}
}
